/*
 * @Author: taoyuqing
 * @Date: 2023-03-12 13:44:02
 * @Description: 
 */
import 'dart:async';

class StreamSocket {
  final _socketResponse = StreamController<String>();

  void Function(String) get addResponse => _socketResponse.sink.add;

  Stream<String> get getResponse => _socketResponse.stream;

  void dispose() {
    _socketResponse.close();
  }
}
